package com.czz.portal.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.czz.portal.entity.QuestionComment;
import com.czz.portal.vo.CommentNestedVo;
import com.czz.portal.vo.UserQuestionVo;

import java.util.List;

/**
 * @ClassName: QuestionCommentMapper
 * @Author Czz
 * @Date 2020/2/14
 * @Time 17:12
 **/
public interface QuestionCommentMapper extends BaseMapper<QuestionComment> {
    List<CommentNestedVo> getCommentNestedVoPageList(Page<CommentNestedVo> pageParam, String id);
    void commentLikeReduce(String commentId);
    void commentLikePlus(String commentId);
    void commentReplyPlus(String commentId);
    List<UserQuestionVo> getUserCommentPageList(Page<UserQuestionVo> pageParam, String userId);
}
